package fr.p10.miage.FactSing.Product;

import fr.p10.miage.FactSing.Factory.Factory;

public class ProductB implements Product {

	static{
		Factory.getInstance().registerProduct("ProductB", new ProductB());
	}
	
	public void doIt() {
		System.out.println ("I'm a ProductB , doing it");		
	}
	
	public ProductB() {
		super();
	}

	@Override
	public Product creerProduct() {
		return new ProductB();
	}

	@Override
	public void faireActions() {
		doIt();
	}
}
